package com.changgou.goods.pojo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * StockBack
 *
 * @author gaofeng
 * @date 2025/4/19 23:19
 */
@Data
@ApiModel(description = "StockBack", value = "StockBack")
@Table(name = "tb_stock_back")
public class StockBack implements Serializable {

    /**
     * 订单id
     */
    @ApiModelProperty(value = "订单id")
    @Column(name = "order_id")
    private String orderId;

    /**
     * SKU的id
     */
    @ApiModelProperty(value = "SKU的id")
    @Id
    @Column(name = "sku_id")
    private String skuId;

    /**
     * 回滚数量
     */
    @ApiModelProperty(value = "回滚数量")
    @Column(name = "num")
    private Integer num;

    /**
     * 回滚状态
     */
    @ApiModelProperty(value = "回滚状态")
    @Column(name = "status")
    private String status;

    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间")
    @Column(name = "create_time")
    private Date createTime;

    /**
     * 回滚时间
     */
    @ApiModelProperty(value = "回滚时间")
    @Column(name = "back_time")
    private Date backTime;
}
